package com.hmall.order.web;

import com.hmall.common.dto.ResultDTO;
import com.hmall.order.pojo.PassWordPo;
import com.hmall.order.service.OrderService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;

@RestController
@RequestMapping("/pay")
public class PayController {

    @Autowired
    OrderService orderService;



    @PutMapping("/{orderId}")
    public ResultDTO payOrder(@PathVariable Long orderId,@RequestBody PassWordPo passWordPo){
        return orderService.payOrder(orderId, passWordPo);
    }
}
